package net.cyan.commons.log;

import org.apache.log4j.Logger;

/**
 * 
 * @author camel
 * @date 2008-12-10
 */
public class Log4JLog extends AbstractLog
{
    private Logger logger;

    public Log4JLog(String name)
    {
        logger = Logger.getLogger(name);
    }

    public Log4JLog(Class c)
    {
        logger = Logger.getLogger(c);
    }

    public void info(String s)
    {
        logger.info(s);
    }

    public void error(String s)
    {
        logger.error(s);
    }

    public void debug(String s)
    {
        logger.debug(s);
    }

    public void warn(String s)
    {
        logger.warn(s);
    }

    public void fatal(String s)
    {
        logger.fatal(s);
    }
}
